<?php
	header("Content-Type:text/html;charset=utf-8");
	define("DB_HOST","localhost" );
	define("DB_USER","root" );
	define("DB_PWD","" );
	define("DB_NAME","blog" );

	//数据库连接
	$conn = @mysqli_connect(DB_HOST,DB_USER,DB_PWD) or die("数据库连接错误: ".mysqli_error());
	@mysqli_select_db(DB_NAME) or die("数据库错误: ".mysqli_error());
	@mysqli_query("SET NAMES UTF-8") or die("字符集错误: ".mysqli_error());
?>